package org.dromara.business.domain.bo;

import org.dromara.business.domain.ContentCategory;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 内容分区业务对象 t_content_category
 *
 * @author Hao Tong Xue
 * @date 2025-04-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ContentCategory.class, reverseConvertGenerate = false)
public class ContentCategoryBo extends BaseEntity {

    /**
     * 分区ID
     */
    @NotNull(message = "分区ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryName;

    /**
     * 类型
     */
    @NotNull(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer categoryType;

    /**
     * 排序
     */
    private Integer orderBy;

    /**
     * 父级分区ID(顶级分区为NULL)
     */
    private Long parentId;

    /**
     * 层级深度(1-一级,2-二级...)
     */
    private Integer level;

    /**
     * 是否热门
     */
    private String hotStatus;

    /**
     * 内容数量
     */
    private Integer contentCount;

    /**
     * 备注
     */
    private String remark;


}
